package com.puti.doctor.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.puti.doctor.mapper.HospitalDoctorLevelMapper;
import com.puti.doctor.domain.HospitalDoctorLevel;
import com.puti.doctor.service.IHospitalDoctorLevelService;

/**
 * 医院-医生-等级 医院-医生-等级Service业务层处理
 * 
 * @author puti
 * @date 2021-04-22
 */
@Service
public class HospitalDoctorLevelServiceImpl implements IHospitalDoctorLevelService 
{
    @Autowired
    private HospitalDoctorLevelMapper hospitalDoctorLevelMapper;

    /**
     * 查询医院-医生-等级 医院-医生-等级
     * 
     * @param doctorLevelId 医院-医生-等级 医院-医生-等级ID
     * @return 医院-医生-等级 医院-医生-等级
     */
    @Override
    public HospitalDoctorLevel selectHospitalDoctorLevelById(Long doctorLevelId)
    {
        return hospitalDoctorLevelMapper.selectHospitalDoctorLevelById(doctorLevelId);
    }

    /**
     * 查询医院-医生-等级 医院-医生-等级列表
     * 
     * @param hospitalDoctorLevel 医院-医生-等级 医院-医生-等级
     * @return 医院-医生-等级 医院-医生-等级
     */
    @Override
    public List<HospitalDoctorLevel> selectHospitalDoctorLevelList(HospitalDoctorLevel hospitalDoctorLevel)
    {
        return hospitalDoctorLevelMapper.selectHospitalDoctorLevelList(hospitalDoctorLevel);
    }

    /**
     * 新增医院-医生-等级 医院-医生-等级
     * 
     * @param hospitalDoctorLevel 医院-医生-等级 医院-医生-等级
     * @return 结果
     */
    @Override
    public int insertHospitalDoctorLevel(HospitalDoctorLevel hospitalDoctorLevel)
    {
        return hospitalDoctorLevelMapper.insertHospitalDoctorLevel(hospitalDoctorLevel);
    }

    /**
     * 修改医院-医生-等级 医院-医生-等级
     * 
     * @param hospitalDoctorLevel 医院-医生-等级 医院-医生-等级
     * @return 结果
     */
    @Override
    public int updateHospitalDoctorLevel(HospitalDoctorLevel hospitalDoctorLevel)
    {
        return hospitalDoctorLevelMapper.updateHospitalDoctorLevel(hospitalDoctorLevel);
    }

    /**
     * 批量删除医院-医生-等级 医院-医生-等级
     * 
     * @param doctorLevelIds 需要删除的医院-医生-等级 医院-医生-等级ID
     * @return 结果
     */
    @Override
    public int deleteHospitalDoctorLevelByIds(Long[] doctorLevelIds)
    {
        return hospitalDoctorLevelMapper.deleteHospitalDoctorLevelByIds(doctorLevelIds);
    }

    /**
     * 删除医院-医生-等级 医院-医生-等级信息
     * 
     * @param doctorLevelId 医院-医生-等级 医院-医生-等级ID
     * @return 结果
     */
    @Override
    public int deleteHospitalDoctorLevelById(Long doctorLevelId)
    {
        return hospitalDoctorLevelMapper.deleteHospitalDoctorLevelById(doctorLevelId);
    }
}
